home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
MacWorld 1999 June
/
Macworld (1999-06).dmg
/
Shareware World
/
Info
/
For Developers
/
MacZoop2.0.sea
/
MacZoop2.0
/
Required Classes
/
ZGrafState.h
< prev
next >
Wrap
Text File
|
1998-04-02
|
711b
|
45 lines
/*************************************************************************************************
*
*
* MacZoop - "the framework for the rest of us"
*
*
*
* ZGrafState.h -- a simple object for saving and restoring grafport state
*
*
* © 1997, Graham Cox
*
*
*
*************************************************************************************************/
#pragma once
#ifndef __ZGRAFSTATE__
#define __ZGRAFSTATE__
class ZGrafState
{
protected:
CGrafPtr port;
GDHandle dev;
RgnHandle clip;
PenState pen;
RGBColor fore;
RGBColor back;
short font;
short fSize;
Style fStyle;
short fMode;
public:
ZGrafState();
virtual ~ZGrafState();
void Record();
void Restore();
};
#endif